#!/usr/bin/env jruby
# -*- coding: us-ascii -*-
# Elizabeth Wiethoff 2008

require 'java'

dir = File.dirname(__FILE__)
require File.join(dir, '..', '..', 'lib', 'superelse', 'filedialogs')

########################################

gsz = 14
doit = FileDialogs.confirmOpenLargeGroup(gsz) if gsz > 8
puts 'pretending to open large group...' if doit

doit = FileDialogs.confirmTossFile(File.expand_path(__FILE__))
puts 'pretending to toss file...' if doit

doit, fname = FileDialogs.inputRenameFile(__FILE__)
puts "pretending to rename to #{fname}..." if doit

path = File.expand_path('~/Desktop/superelse.out.csv')
doit, path = FileDialogs.chooseExportFile(path)
puts "pretending to export to #{path}..." if doit

java.lang.System.exit(0)
